package com.wen.chainPattern;

public class GrandPaHandler extends Handler{

    protected String type;

    public GrandPaHandler(String type){
        this.type = type;
    }

    @Override
    public String getType() {
       return type;
    }

    @Override
    public void echo(String request) {
        System.out.println("收到请求 "+request+"处理结果位 爷爷同意了，你可以出去玩耍");
    }
}
